{template common/contentheader} 
<div class="setcontent">
	<div class="settitle">
		<h3>{lang tip_edit_topic}-$topic['topic_title']</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang tip_edit_topic}
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/contenttopic?act=edit&topicid=$topic['topic_id']}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang category}:</label>
				<div class="formcontrol">
					<select name="category_id" id="category_id">
						{loop $rootCategories $category}
			            		<option value="$category['category_id']" {if $category['category_id']==$topic['category_id']}selected{/if}>$category['category_name_cn']</option>
			            {/loop}
					</select>
				</div>
				<span class="formhelp">{lang category}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang topic_title}:</label>
				<div class="formcontrol">
					<input type="text" name="topic_title" value="$topic['topic_title']" id="topic_title"/>
				</div>
				<span class="formhelp">{lang topic_title}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang topic_desc}:</label>
				<div class="formcontrol">
					<textarea id="topic_desc" name="topic_desc" rows="6" class="span4">$topic['topic_desc']</textarea>
				</div>
				<span class="formhelp">{lang topic_desc}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang tag}:</label>
				<div class="formcontrol">
					<input type="text" name="keyword" value="$topic['keyword']" id="keyword"/>
				</div>
				<span class="formhelp">{lang tag_tip}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}